package artid.com.arttogo.bean;

import org.json.JSONObject;
import java.io.Serializable;
/**
 *
 * 类名称：InstitutionArtLits
 * 类描述：机构作品适配器
 * 创建人：耿卫斌
 * 创建时间：2017/4/27 17:00
 *
 */
public class InstitutionArtLits extends AppItem implements Serializable {
	private int height;//图片高度
	private String imgurl;//藏品缩略图
	private String arttitle;//藏品标题
	private String art_id;//藏品ID
	private String artist_id;//艺术家id
	private String realname;//艺术家名字
	private String path;//艺术家头像

	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		height = obj.optInt("height");
		imgurl = obj.optString("imgurl");
		arttitle = obj.optString("arttitle");
		art_id = obj.optString("art_id");
		artist_id = obj.optString("artist_id");
		realname = obj.optString("realname");
		path = obj.optString("path");

	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public String getArttitle() {
		return arttitle;
	}

	public void setArttitle(String arttitle) {
		this.arttitle = arttitle;
	}

	public String getArt_id() {
		return art_id;
	}

	public void setArt_id(String art_id) {
		this.art_id = art_id;
	}

	public String getArtist_id() {
		return artist_id;
	}

	public void setArtist_id(String artist_id) {
		this.artist_id = artist_id;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public InstitutionArtLits() {
	}

	public InstitutionArtLits(int height, String imgurl, String arttitle, String art_id, String artist_id, String realname, String path) {
		this.height = height;
		this.imgurl = imgurl;
		this.arttitle = arttitle;
		this.art_id = art_id;
		this.artist_id = artist_id;
		this.realname = realname;
		this.path = path;
	}

	@Override
	public String toString() {
		return "InstitutionArtLits{" +
				"height=" + height +
				", imgurl='" + imgurl + '\'' +
				", arttitle='" + arttitle + '\'' +
				", art_id='" + art_id + '\'' +
				", artist_id='" + artist_id + '\'' +
				", realname='" + realname + '\'' +
				", path='" + path + '\'' +
				'}';
	}
}
